﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace QLHD
{
    public partial class frmMain : DevComponents.DotNetBar.Office2007RibbonForm
    {
        public frmMain()
        {
            InitializeComponent();
        }

        private void buttonItem1_Click(object sender, EventArgs e)
        {
                     
        }

        private void btnKho_Click(object sender, EventArgs e)
        {
            frmQLKho form = new frmQLKho(this);
            form.Show();
            form.WindowState = FormWindowState.Maximized;  
        }
        private void btnNhaCC_Click(object sender, EventArgs e)
        {
            frmNhaCC form = new frmNhaCC(this);
            form.Show();
            form.WindowState = FormWindowState.Maximized; 
        }

        private void btnNhom_Click(object sender, EventArgs e)
        {
            frmLo_Nhom form = new frmLo_Nhom(this);
            form.Show();
            form.WindowState = FormWindowState.Maximized;  
        }

        private void btnDonVi_Click(object sender, EventArgs e)
        {
            frmDonVi form = new frmDonVi(this);
            form.Show();
            form.WindowState = FormWindowState.Maximized;  
        }

        private void btnMaNX_Click(object sender, EventArgs e)
        {
            frmMaNhapXuat form = new frmMaNhapXuat(this);
            ShowChildForm(form);
            
        }
        void ShowChildForm(Form form)
        {
            form.Show();
            form.WindowState = FormWindowState.Maximized;
        }

        private void btnNhanVien_Click(object sender, EventArgs e)
        {
            frmNhanVien form = new frmNhanVien(this);
            ShowChildForm(form);
        }

        private void btnKichThuoc_Click(object sender, EventArgs e)
        {
            frmMaTP form = new frmMaTP(this);
            ShowChildForm(form);
        }

        private void btnNhapKho_Click(object sender, EventArgs e)
        {
            frmNhapNL_Tho form = new frmNhapNL_Tho(this);
            ShowChildForm(form);
        }

        private void btnXuatKho_Click(object sender, EventArgs e)
        {
            frmXuatNL_Tho form = new frmXuatNL_Tho(this);
            ShowChildForm(form);
        }

        private void btnTachNhan_Click(object sender, EventArgs e)
        {
            frmChiTietTH_TN form = new frmChiTietTH_TN(this);
            ShowChildForm(form);
        }

        private void btnGiaoNhan_Click(object sender, EventArgs e)
        {
            frmGiaoNhanTachNhan form = new frmGiaoNhanTachNhan(this);
            ShowChildForm(form);
        }

        private void btnSay_Click(object sender, EventArgs e)
        {
            frmSay form = new frmSay(this);
            ShowChildForm(form);
        }

        private void btnBocLua_Click(object sender, EventArgs e)
        {
            frmCT_BocLua form = new frmCT_BocLua(this);
            ShowChildForm(form);
        }

        private void buttonItem14_Click(object sender, EventArgs e)
        {
            frmPhanLoai form = new frmPhanLoai(this);
            ShowChildForm(form);
        }

        private void btnBCTho_Click(object sender, EventArgs e)
        {
            frmBCNguyenLieuTho form = new frmBCNguyenLieuTho(this);
            ShowChildForm(form);
        }
    }
}
